﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Entity;

namespace DAO
{
    public class DomainDAO
    {
        BMS_DatabaseEntities context = new BMS_DatabaseEntities();

        public List<DomainEntity> LoadDomain()
        {
            var query = from c in context.DOMAIN_INFO select new DomainEntity { 
            DomainName=c.DOMAIN_NAME};
            return query.ToList<DomainEntity>();
        }
    }
}
